<template>
  <div class="demo">
    <div class="demo-title">文案展现</div>
    <div class="demo-content">
      <Rate v-model:value="value" :tooltips="desc" />
      <span class="ant-rate-text">{{ desc[value - 1] }}</span>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue';
  import Rate from '@sscd/rate';
  const value = ref<number>(3);
  const desc = ref<string[]>(['terrible', 'bad', 'normal', 'good', 'wonderful']);
</script>
